<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<h2><?php print $header?></h2>
<p><?php echo $this->lang->line( 'menu_position_intro' ); ?></p>
<div class="buttons">                
	<a href="<?php print site_url( 'article/user/menu/form_position' )?>">
    <?php print $this->bep_assets->icon( 'add' );?>
    <?php print $this->lang->line( 'create_menu_position' )?>
    </a>
</div>
<br />
<br />
<br />
<?php print form_open('article/user/menu/delete_position')?>
<table class="data_grid" cellspacing="0">
    <thead>
        <tr>
            <th width=5%><?php print $this->lang->line( 'menu_position_id' )?></th>
            <th><?php print $this->lang->line( 'menu_position_title' )?></th>
            <th width=10% class="middle"><?php print $this->lang->line( 'menu_position_position_title' )?></th> 
            <th width=10% class="middle"><?php print $this->lang->line( 'menu_position_edit' )?></th>
            <th width=10% class="middle"><?php print $this->lang->line( 'menu_position_manage' )?></th>
            <th width=10%><?php print form_checkbox( 'all', 'select', FALSE)?><?php print $this->lang->line( 'menu_position_delete' )?></th>        
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan=5>&nbsp;</td>
            <td><?php print form_submit( 'delete', $this->lang->line( 'menu_position_delete' ), 'onClick="return confirm(\''.$this->lang->line('menu_position_delete_confirm').'\');"')?></td>
        </tr>
    </tfoot>
    <tbody>
        <?php foreach( $menu_position->result_array( ) as $row ){ ?>
        <tr>
            <td><?php print $row['id']?></td>
            <td><?php print $row['title']?></td> 
            <td class="middle"><?php print $row['pos_title']?></td> 
            <td class="middle"><a href="<?php print site_url('article/user/menu/form_position/'.$row['id'])?>"><?php print $this->bep_assets->icon( 'pencil' ); ?></a></td>
            <td class="middle"><a href="<?php print site_url('article/user/menu/overview/'.$row['id'])?>"><?php print $this->bep_assets->icon( 'pencil' ); ?></a></td>
            <td><?php print form_checkbox( 'select[]', $row['id'], FALSE ); ?></td>
        </tr>
        <?php } //foreach ?>
    </tbody>
</table>
<?php print form_close()?>